
public class Modifier {
	private boolean isPrivate = false;
	private boolean isPublic = true;
	private boolean isStatic = false;
	private boolean isDefault = true;

	public void setIsPrivate(boolean val){
		isPrivate = val;	
	}
	public boolean getIsPrivate() {
		return isPrivate;
	}
	
	public void setIsStatic(boolean val){
		isStatic = val;
	}
	public boolean getIsStatic() {
		return isStatic;
	}
	
	public void setIsPublic(boolean val){
		isPublic = val;
		isDefault = false;
	}
	public boolean getIsPublic() {
		return isPublic;
	}

	public void print(String prefix) {
		String printStr = "";
		if (isPrivate) {
			printStr += "private";
		}
		if (isPublic) {
			printStr += "public";
			if (isDefault) {
				printStr += " (default)";
			}
		}
		if (isStatic) {
			printStr += ", static";
		}
		System.out.print(prefix + printStr); 
	}
}
